package com.atguigu.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @author cyt
 * @create 2020-05-10 17:07
 */


@Component
public class Contast implements InitializingBean {

    @Value("${accessKeyId}")
    private String accessKeyId;
    @Value("${accessKeySecret}")
    private String accessKeySecret;


    public static String accessKey_Secret;
    public static String accessKey_Id;

    @Override
    public void afterPropertiesSet() throws Exception {
        accessKey_Secret = accessKeySecret;
        accessKey_Id = accessKeyId;
        System.out.println(accessKeySecret);
    }
}

